home *** CD-ROM | disk | FTP | other *** search
- on checkColumn
- global gColumn, gRow
- if (the mouseH >= 159) and (the mouseH < 249) then
- set gColumn to 1
- checkRow1()
- else
- if (the mouseH >= 249) and (the mouseH < 339) then
- set gColumn to 2
- checkRow2()
- else
- if (the mouseH >= 339) and (the mouseH < 429) then
- set gColumn to 3
- checkRow3()
- else
- if (the mouseH >= 429) and (the mouseH < 519) then
- set gColumn to 4
- checkRow4()
- else
- if (the mouseH >= 519) and (the mouseH < 606) then
- set gColumn to 5
- checkRow5()
- else
- set gColumn to 0
- set the castNum of sprite 11 to cast "m17"
- updateStage()
- end if
- end if
- end if
- end if
- end if
- end
-
- on checkRow1
- global gColumn, gRow
- set upCast to the number of cast "m17"
- if (the mouseV >= 162) and (the mouseV < 183) then
- set gRow to 1
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 183) and (the mouseV < 200) then
- set gRow to 2
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 200) and (the mouseV < 214) then
- set gRow to 3
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 214) and (the mouseV < 231) then
- set gRow to 4
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 231) and (the mouseV < 245) then
- set gRow to 5
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 265) and (the mouseV < 294) then
- set gRow to 6
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 294) and (the mouseV < 311) then
- set gRow to 7
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 311) and (the mouseV < 326) then
- set gRow to 8
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 326) and (the mouseV < 354) then
- set gRow to 9
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 354) and (the mouseV < 370) then
- set gRow to 10
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 370) and (the mouseV < 394) then
- set gRow to 11
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 394) and (the mouseV < 416) then
- set gRow to 12
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- set gRow to 0
- set the castNum of sprite 11 to cast "m17"
- updateStage()
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on checkRow2
- global gColumn, gRow
- set upCast to the number of cast "m17"
- if (the mouseV >= 162) and (the mouseV < 183) then
- set gRow to 1
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 183) and (the mouseV < 200) then
- set gRow to 2
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 200) and (the mouseV < 214) then
- set gRow to 3
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 214) and (the mouseV < 231) then
- set gRow to 4
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 231) and (the mouseV < 245) then
- set gRow to 5
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 245) and (the mouseV < 275) then
- set gRow to 6
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 275) and (the mouseV < 294) then
- set gRow to 7
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 394) and (the mouseV < 416) then
- set gRow to 8
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- set gRow to 0
- set the castNum of sprite 11 to cast "m17"
- updateStage()
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on checkRow3
- global gColumn, gRow
- set upCast to the number of cast "m17"
- if (the mouseV >= 162) and (the mouseV < 183) then
- set gRow to 1
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 183) and (the mouseV < 200) then
- set gRow to 2
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 200) and (the mouseV < 214) then
- set gRow to 3
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 214) and (the mouseV < 231) then
- set gRow to 4
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 231) and (the mouseV < 245) then
- set gRow to 5
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 394) and (the mouseV < 416) then
- set gRow to 6
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- set gRow to 0
- set the castNum of sprite 11 to cast "m17"
- updateStage()
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on checkRow4
- global gColumn, gRow
- set upCast to the number of cast "m17"
- if (the mouseV >= 162) and (the mouseV < 183) then
- set gRow to 1
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 183) and (the mouseV < 200) then
- set gRow to 2
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 200) and (the mouseV < 214) then
- set gRow to 3
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 214) and (the mouseV < 231) then
- set gRow to 4
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 231) and (the mouseV < 245) then
- set gRow to 5
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 245) and (the mouseV < 265) then
- set gRow to 6
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 394) and (the mouseV < 416) then
- set gRow to 7
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- set gRow to 0
- set the castNum of sprite 11 to cast "m17"
- updateStage()
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on checkRow5
- global gColumn, gRow
- set upCast to the number of cast "m17"
- if (the mouseV >= 162) and (the mouseV < 183) then
- set gRow to 1
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 183) and (the mouseV < 200) then
- set gRow to 2
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 200) and (the mouseV < 214) then
- set gRow to 3
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 214) and (the mouseV < 231) then
- set gRow to 4
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 231) and (the mouseV < 245) then
- set gRow to 5
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- if (the mouseV >= 394) and (the mouseV < 416) then
- set gRow to 6
- set downCast to the number of cast ("c" & gColumn & "." & gRow)
- set the castNum of sprite 11 to downCast
- updateStage()
- else
- set gRow to 0
- set the castNum of sprite 11 to cast "m17"
- updateStage()
- end if
- end if
- end if
- end if
- end if
- end if
- end
-